package com.rongxue.mapper;

import com.rongxue.pojo.SUserCashCoupon;
import com.rongxue.pojo.SUserCashCouponExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SUserCashCouponMapper {
    int countByExample(SUserCashCouponExample example);

    int deleteByExample(SUserCashCouponExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SUserCashCoupon record);

    int insertSelective(SUserCashCoupon record);

    List<SUserCashCoupon> selectByExample(SUserCashCouponExample example);

    SUserCashCoupon selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SUserCashCoupon record, @Param("example") SUserCashCouponExample example);

    int updateByExample(@Param("record") SUserCashCoupon record, @Param("example") SUserCashCouponExample example);

    int updateByPrimaryKeySelective(SUserCashCoupon record);

    int updateByPrimaryKey(SUserCashCoupon record);

    SUserCashCoupon selectUserCashCouponByStatusAndUserId(@Param("cashId") String cashId, @Param("userId") String userId);

}